<!DOCTYPE html>
<html lang="en">
<head>
    <script src="/webjars/jquery/3.1.1/jquery.min.js"></script>
    <script src="/webjars/bootstrap/3.3.7-1/js/bootstrap.min.js"></script>
    <title>WebJars Demo</title>
    <link rel="stylesheet" href="/webjars/bootstrap/3.3.7-1/css/bootstrap.min.css" />
</head>
<body>
    <div class="container"><br/>
        <div class="alert alert-success">
            <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
            Hello, <strong>WebJars!</strong>
        </div>
    </div>
</body>
<script>
    $(function () {
        var list = [];
        var a = {};
        a.plateNumber = "粤A";
        a.plateType = "02";
        a.idCardNo = "1111111";
        a.engine = "aaaa";

        var b = {};
        b.plateNumber = "粤B";
        b.plateType = "02";
        b.idCardNo = "2222222";
        b.engine = "bbbb";

        list.push(a);
        list.push(b);

        $.ajax({
            type: "POST",
            url: "http://localhost:8090/test-mvc-annotation/test9",
            data: JSON.stringify(list),
            dataType: "json",
            contentType : 'application/json',
            success: function(data){
                console.log(data);
            }
        });


    })
</script>
</html>